#ifndef TRAFFICCONTROLFRAME_H
#define TRAFFICCONTROLFRAME_H

#include "point.h"
#include "streetmap.h"
#include "trafficcontrol.h"

using namespace GeometryUtilities;

class TrafficControlFrame
{
public:
  TrafficControlFrame(const QString& name,
                      const StreetMap::Intersection *intersection,
                      const TrafficControl::State &state);

  void setName(const QString &name);
  QString name() const;

  void setState(const TrafficControl::State &state);
  TrafficControl::State state() const;

  void setIntersection(const StreetMap::Intersection *intersection);
  const StreetMap::Intersection* intersection() const;

protected:
  QString mName;
  const StreetMap::Intersection *mIntersection;
  TrafficControl::State mState;
};

#endif
